#include <stdio.h>

int main()
{
  int a, b;
  printf("Please iuput two integers:");
  scanf("%d %d", &a, &b);
  int max = 0;
  if (a > b)
  {
    max = a;
  }
  else
  {
    max = b;
  }
  printf("The bigger one is %d\n", max);
  return 0;
}


#include <stdio.h>
struct Chain
{
    struct Chain *prev;
    int data1;
    int data2;
    struct Chain *next;
};
void main()
{
    struct Chain cdata[10];
    for(int i=0;i<9;i++){
        cdata[i].next = &cdata[i+1];
        cdata[i].data1 = i;
    }
    cdata[9].next = NULL;
    cdata[9].data1 = 9;
    struct Chain *p;
    p = cdata;
    for(int i=0;i<10;i++){
        printf("%d\n", p->data1);
        p = p->next;
    }
    p = cdata;
    while(p!=NULL){
        printf("%d\n", p->data1);
        p = p->next;
    }
    // 如果我想删除第三、四个数据
    cdata[2].next = cdata[4].next;
    // 如果我想插入一个数据
    struct Chain new_data;
    cdata[2].next = &new_data;
    new_data.next = cdata[4].next;
}


#include <stdio.h>
int x;
scanf("%d" , &x);
int n = 0;
do
{ 
  x  /= 10;
  n++;
}
while(x>0);
printf("%d" , n);

